<%@ page contentType="text/html; charset=utf-8" language="java"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	String appPath = request.getContextPath();
	String allPath = request.getScheme() + "://"+ request.getServerName() + ":" + request.getServerPort();
	pageContext.setAttribute("appPath", appPath);
	pageContext.setAttribute("allPath", allPath);
%>
<jsp:include page="common/header.jsp" flush="true"/>

<div class="mid">
  <div class="right">
    <div class="position">
      <a href="<%=appPath%>/index.htm">首页</a>><a href="<%=appPath%>/libaddr.htm?action=page">馆内通讯录</a>      
    </div>    
    <div class="list_cont">
		<form name="mainForm" id="mainFormID" action="libaddr.htm" method="post">
			<input type="hidden" id="action" name="action" value="page"/>
			<input type="hidden" id="sortMapId" name="sortMapId" value="${sortMapId}"/>
			<input name="name" type="text" size="40" maxlength="40" value="${name}"/>
			<input name="button" type="submit" value="查找" />
	      	<ul>
				<table>
					<tr>
						<td>
							姓名
						</td>
						<td>
							职位
						</td>
						<td>
							电话
						</td>
						<td>
							E-Mail
						</td>
						<td>
							校区 
						</td>
					</tr>
					<c:forEach items="${list}" var="libaddr">
						<tr>
							<td>
								${libaddr.name}
							</td>
							<td>
								${libaddr.position}
							</td>
							<td>
								${libaddr.tel}
							<td>
								${libaddr.email}
							</td>
							<td>
								${libaddr.area}
							</td>
						</tr>
					</c:forEach>
			</table>			
	      	</ul>
			<jsp:include page="common/page.jsp" flush="true"/>
		</form>        
  </div>
  <div style="clear:both"></div>
</div>
<jsp:include page="common/foot.jsp" flush="true"/>
